module.exports = (sequelize, Sequelize) => {
    const News = sequelize.define("news",
        {
            url: {
                type: Sequelize.STRING
            },
            page_id: {
                type: Sequelize.INTEGER,
                primaryKey: true
            }
        }, {
        indexes: [{
            unique: true,
            fields: ['page_id']
        }]
    }, {
        freezeTableName: true,
        timestamps: false,
    });

    News.removeAttribute('id');
    News.removeAttribute('createdAt');
    News.removeAttribute('updatedAt');
    return News
}